jmp near start

mytext db 'L',0x07,'a',0x07,'b',0x07,'e',0x07,'l',0x07,\
          ' ',0x07,'O',0x07,'f',0x07,'f',0x07,'s',0x07,\
          'e',0x07,'t',0x07,':',0x07
number db 0,0,0,0,0

start:
    ;设置段寄存器
    mov ax,0x07c0
    mov ds,ax

    mov ax,0xb800
    mov es,ax

    ;初始化，准备写入mytext
    cld
    mov si,mytext
    mov di,0
    mov cx,(number-mytext)/2
    rep movsw

    ;拆分number地址的各位
    mov ax,number
    mov bx,ax
    mov si,10
    mov cx,5
    digit:
        xor dx,dx
        div si
        mov [bx],dl
        inc bx
        loop digit
    
    ;显示各位
    mov bx,number
    mov si,4
    show:
        mov al,[bx+si]
        add al,0x30
        mov ah,0x40
        mov [es:di],ax
        add di,2
        dec si
        jns show
    
    mov word [es:di],0x0744

    jmp near $

    times 510-($-$$) db 0
    db 0x55,0xAA